nusoap_xmlschemaparses an XML Schema, allows access to it's data, other utility methods.
imperfect, no validation... yet, but quite functional.
Located in /nusoap.php (line 1083)
nusoap_base | --nusoap_xmlschema
| Class | Description |
|---|---|
XMLSchema
|
Backward compatibility |
nusoap_xmlschema
nusoap_xmlschema
([string $schema = ''], [string $xml = ''], [string $namespaces = array()])
void
addComplexType
(name $name, [typeClass $typeClass = 'complexType'], [phpType: $phpType = 'array'], [compositor $compositor = ''], [restrictionBase $restrictionBase = ''], [elements $elements = array()], [attrs $attrs = array()], [arrayType: $arrayType = ''])
void
addSimpleType
(string $name, [string $restrictionBase = ''], [string $typeClass = 'simpleType'], [string $phpType = 'scalar'], [array $enumeration = array()])
mixed
$attributes
= array() (line 1094)
mixed
$complexTypes
= array() (line 1095)
mixed
$complexTypeStack
= array() (line 1096)
mixed
$currentComplexType
= null (line 1097)
mixed
$currentElement
= null (line 1100)
mixed
$currentSimpleType
= null (line 1103)
mixed
$defaultNamespace
= array() (line 1112)
mixed
$depth
= 0 (line 1109)
mixed
$depth_array
= array() (line 1110)
mixed
$elements
= array() (line 1098)
mixed
$elementStack
= array() (line 1099)
mixed
$enclosingNamespaces
(line 1089)
mixed
$imports
= array() (line 1105)
mixed
$message
= array() (line 1111)
mixed
$parser
(line 1107)
mixed
$position
= 0 (line 1108)
mixed
$schema
= '' (line 1086)
mixed
$schemaInfo
= array() (line 1091)
mixed
$schemaTargetNamespace
= '' (line 1092)
mixed
$simpleTypes
= array() (line 1101)
mixed
$simpleTypeStack
= array() (line 1102)
mixed
$xml
= '' (line 1087)
Inherited from nusoap_base
nusoap_base::$charencoding
nusoap_base::$debugLevel
nusoap_base::$debug_str
nusoap_base::$error_str
nusoap_base::$namespaces
nusoap_base::$revision
nusoap_base::$soap_defencoding
nusoap_base::$title
nusoap_base::$typemap
nusoap_base::$usedNamespaces
nusoap_base::$version
nusoap_base::$xmlEntities
nusoap_base::$XMLSchemaVersion
constructor
adds a complex type to the schema
example: array
addType( 'ArrayOfstring', 'complexType', 'array', '', 'SOAP-ENC:Array', array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'string[]'), 'xsd:string' );
example: PHP associative array ( SOAP Struct )
addType( 'SOAPStruct', 'complexType', 'struct', 'all', array('myVar'=> array('name'=>'myVar','type'=>'string') );
adds an element to the schema
adds a simple type to the schema
gets a type name for an unnamed type
get the PHP type of a user defined type in the schema
PHP type is kind of a misnomer since it actually returns 'struct' for assoc. arrays returns false if no type exists, or not w/ the given namespace else returns a string that is either a native php type, or 'struct'
returns an associative array of information about a given type returns false if no type exists by the given name
For a complexType typeDef = array( 'restrictionBase' => '', 'phpType' => '', 'compositor' => '(sequence|all)', 'elements' => array(), // refs to elements array 'attrs' => array() // refs to attributes array ... and so on (see addComplexType) )
For simpleType or element, the array has different keys.
parse an XML file
parse an XML string
element content handler
end-element handler
start-element handler
returns a sample serialization of a given type, or false if no type by the given name
returns HTML form elements that allow a user to enter values for creating an instance of the given type.
adds debug data to the clas level debug string
Inherited From nusoap_base
nusoap_base::nusoap_base()
nusoap_base::appendDebug()
nusoap_base::clearDebug()
nusoap_base::contractQname()
nusoap_base::debug()
nusoap_base::expandEntities()
nusoap_base::expandQname()
nusoap_base::formatDump()
nusoap_base::getDebug()
nusoap_base::getDebugAsXMLComment()
nusoap_base::getDebugLevel()
nusoap_base::getError()
nusoap_base::getGlobalDebugLevel()
nusoap_base::getLocalPart()
nusoap_base::getmicrotime()
nusoap_base::getNamespaceFromPrefix()
nusoap_base::getPrefix()
nusoap_base::getPrefixFromNamespace()
nusoap_base::isArraySimpleOrStruct()
nusoap_base::serializeEnvelope()
nusoap_base::serialize_val()
nusoap_base::setDebugLevel()
nusoap_base::setError()
nusoap_base::setGlobalDebugLevel()
nusoap_base::varDump()
nusoap_base::__toString()
Documentation generated on Tue, 06 Nov 2007 10:37:04 -0500 by phpDocumentor 1.3.0RC3